package com.enumdemo.kind.demo1;

/**
 * 所有枚举类型都可以向上转型为Food
 * 
 * @author Administrator
 *
 */
public class TypeOfFood {

	public static void main(String[] args) {
		Food food = Food.Appetizer.SALAD;
		food = Food.MainCourse.LASAGNE;
		food = Food.Dessert.GELATO;
		food = Food.Coffee.CAPPUCCINO;
	}

}
